-
-
Notifications
You must be signed in to change notification settings - Fork 368
Deprecate RaisesGroup
#3337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Deprecate RaisesGroup
#3337
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (94.30300%) is below the target coverage (100.00000%). You can increase the head coverage or adjust the target coverage.
Additional details and impacted files@@ Coverage Diff @@
## main #3337 +/- ##
====================================================
- Coverage 100.00000% 94.30300% -5.69701%
====================================================
Files 125 125
Lines 19586 19835 +249
Branches 1342 1384 +42
====================================================
- Hits 19586 18705 -881
- Misses 0 1102 +1102
- Partials 0 28 +28
🚀 New features to boost your workflow:
|
|
Makes sense. However even if I deprecate it on _deprecate.deprecate_attributes(
__name__,
{
"RaisesGroup": _deprecate.DeprecatedAttribute(
"RaisesGroup",
version="0.32.0",
issue=3326,
instead="See https://docs.pytest.org/en/stable/reference/reference.html#pytest.RaisesGroup",
)
},
) On |
I think the deprecation should go in I'm probably misunderstanding what you're saying cause it sounds like you tried that... |
Note that this is how the usage looks like (it's a bit complicated because you need the actual underlying object, but under a different name) deprecate_attributes(__name__, {
"RaisesGroup": DeprecatedAttribute(_RaisesGroup, "0.32.0", ...)
}) |
Closes #3326 by deprecating
RaisesGroup
where pytest alternative recommended from now on.